package com.ruoyi.supplier.service;

import com.ruoyi.supplier.domain.StockRecord;
import com.ruoyi.supplier.domain.vo.StockRecordVo;
import com.ruoyi.supplier.domain.bo.StockRecordBo;
import com.ruoyi.common.mybatis.core.page.PageQuery;
import com.ruoyi.common.mybatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 出入库记录Service接口
 *
 * @author ruoyi
 * @date 2023-09-18
 */
public interface IStockRecordService {

    /**
     * 查询出入库记录
     */
    StockRecordVo queryById(Integer stockRecordId);

    /**
     * 查询出入库记录列表
     */
    TableDataInfo<StockRecordVo> queryPageList(StockRecordBo bo, PageQuery pageQuery);

    /**
     * 查询出入库记录列表
     */
    List<StockRecordVo> queryList(StockRecordBo bo);

    /**
     * 修改出入库记录
     */
    Boolean insertByBo(StockRecordBo bo);

    /**
     * 修改出入库记录
     */
    Boolean updateByBo(StockRecordBo bo);

    /**
     * 校验并批量删除出入库记录信息
     */
    Boolean deleteWithValidByIds(Collection<Integer> ids, Boolean isValid);
}
